<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../angular.js"></script>
    <script src="angular-local-storage.min.js"></script>

    <script src="dist/localForage.js"></script>
    
   
</head>
<body>
    
    <div ng-controller="MyController">
        {{location.path}}
        <br>
        {{location.absUrl}}
        <br>
        {{location.host}}
        <br>
        {{location.port}}
    </div>
    
     <script>
        var app = angular.module("myapp", ["LocalStorageModule"]);
        app.config(function (localStorageServiceProvider) {
            localStorageServiceProvider
                .setPrefix('myapp')
                .setStorageType('localStorage') //sessionStorage')
                .setNotify(true, true)
            });
         
        app.controller("MyController", function($scope, $location, localStorageService) {
            console.log(localStorageService.isSupported,  localStorageService.getStorageType());  


localforage.config({ 
    name: 'ct-workflow'
});
            localforage.setItem("iadsfasdfasdfou", "hahasssssssssssssssdo you love me?")
            .then(function(g) { console.log(g)}, function(b) {console.log(b)});
        });
        
        angular.bootstrap(document, ["myapp"]);
    </script>
</body>
</html>